/**
 * create time : 2010-5-26
 * author : Administrator
 */
package com.xbang.core.page;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
 * @author Administrator
 * 
 */
public class Result implements Serializable {

	private Page page;

	private List items;

	/**
	 * The constructor
	 */
	public Result(Page page, Set items) {
		this.page = page;
		List temp = new ArrayList();
		temp.addAll(items);
		this.items = temp;
	}

	/**
	 * The constructor
	 */
	public Result(Page page, List items) {
		this.page = page;
		this.items = items;
	}

	/**
	 * @return Returns the page.
	 */
	public Page getPage() {
		return page;
	}

	/**
	 * @return Returns the items.
	 */
	public List getItems() {
		return items;
	}

	/**
	 * @param page
	 *            The page to set.
	 */
	public void setPage(Page page) {
		this.page = page;
	}

	/**
	 * @param items
	 *            The items to set.
	 */
	public void setItems(List items) {
		this.items = items;
	}
}
